<?php
class ContractTaskVo extends SzAbstractMySqlVo
{

    private $userId;
    private $pos;
    private $type;
    private $taskId;
    private $num;
    private $hasNum;
    private $state;
    private $point;
    private $createTime;
    private $updateTime;
    private $endTime;

    /**
     * Initialize ContractTaskVo.
     *
     * @param $userId
     * @param $pos
     * @param $type
     * @param $taskId
     * @param $num
     * @param $hasNum
     * @param $state
     * @param $point
     * @param $createTime
     * @param $updateTime
     * @param $endTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ContractTaskVo
     */
    public function __construct($userId, $pos, $type, $taskId, $num, $hasNum, $state, $point, $createTime, $updateTime, $endTime, $isInsert = false) {
        $this->userId = $userId;
        $this->pos = $pos;
        $this->type = $type;
        $this->taskId = $taskId;
        $this->num = $num;
        $this->hasNum = $hasNum;
        $this->state = $state;
        $this->point = $point;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;
        $this->endTime = $endTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ContractTaskVo';
        $this->ormName = 'ContractTask';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'pos' => $this->getPos(),
            'type' => $this->getType(),
            'taskId' => $this->getTaskId(),
            'num' => $this->getNum(),
            'hasNum' => $this->getHasNum(),
            'state' => $this->getState(),
            'point' => $this->getPoint(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'pos' => $this->getPos(),
            'type' => $this->getType(),
            'taskId' => $this->getTaskId(),
            'num' => $this->getNum(),
            'hasNum' => $this->getHasNum(),
            'state' => $this->getState(),
            'point' => $this->getPoint(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getPos(),
            $this->getType(),
            $this->getTaskId(),
            $this->getNum(),
            $this->getHasNum(),
            $this->getState(),
            $this->getPoint(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
            $this->getEndTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getPos()
    {
        return $this->pos;
    }

    public function setPos($val)
    {
        $this->saveColumnStatus(1, $this->pos);
        $this->pos = $val;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setType($val)
    {
        $this->saveColumnStatus(2, $this->type);
        $this->type = $val;
    }

    public function getTaskId()
    {
        return $this->taskId;
    }

    public function setTaskId($val)
    {
        $this->saveColumnStatus(3, $this->taskId);
        $this->taskId = $val;
    }

    public function getNum()
    {
        return $this->num;
    }

    public function setNum($val)
    {
        $this->saveColumnStatus(4, $this->num);
        $this->num = $val;
    }

    public function getHasNum()
    {
        return $this->hasNum;
    }

    public function setHasNum($val)
    {
        $this->saveColumnStatus(5, $this->hasNum);
        $this->hasNum = $val;
    }

    public function getState()
    {
        return $this->state;
    }

    public function setState($val)
    {
        $this->saveColumnStatus(6, $this->state);
        $this->state = $val;
    }

    public function getPoint()
    {
        return $this->point;
    }

    public function setPoint($val)
    {
        $this->saveColumnStatus(7, $this->point);
        $this->point = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(8, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(9, $this->updateTime);
        $this->updateTime = $val;
    }

    public function getEndTime()
    {
        return $this->endTime;
    }

    public function setEndTime($val)
    {
        $this->saveColumnStatus(10, $this->endTime);
        $this->endTime = $val;
    }

}